package ooday03;

public class InterfaceDemo {
    public static void main(String[] args) {

    }
}
    interface Inter{
        public void say();
        void sayHi();
        //void saa(){}编译错误
    }
    interface Inter1{
        void say();
        void sayHi();
    }
    class A00 implements Inter1 {
        public void say(){}//重写接口中的方法时，必须加public
        public void sayHi(){}
    }
    interface Inter2{
    void say();
    }
    interface Inter3{
    void sayHi();
    }
    abstract class Boo{
    abstract void sat();

    }
    class Coo extends Boo implements Inter2,Inter3{
   public void say(){}
    public void sayHi(){}
     void sat(){}
    }
    interface Inter4{
    void say();
    }
    interface Inter5 extends Inter4{
    void sayHi();
    }
    class Doo implements Inter5{
    public void say(){
    }
    public void sayHi(){

    }
    }




